package com.service.impl;

import com.dao.BgUserDao;
import com.dao.impl.BgUserDaoImpl;
import com.entity.BgUser;
import com.entity.User;
import com.service.BgUserServlet;

public class BgUserServletImpl implements BgUserServlet {
    BgUserDao bgUserDao = new BgUserDaoImpl();
    @Override
    public BgUser login(String username, String pass) {
        BgUser user = bgUserDao.login(username, pass);
        if (user!=null){
            return user;
        }
        return null;
    }
}
